import {createSlice} from "@reduxjs/toolkit";
import useSetStorage from "@/hooks/useSetStorage";

export const aiInnovationSlice = createSlice({
    name: "login",
    initialState: () => {
        return {
            params: {
                articlesNum: 1,
                wordsNum: 100,
                templateId: '',
                stream: true,
                text: '',
            }
        };

    },
    reducers: {
        set_params(state,action){
            state.params = action.payload
        }
    }
});

export const {
    set_params,
} = aiInnovationSlice.actions;